<?php
/**
 * The template for displaying the header
 *
 * Displays all of the head element and everything up until the "site-content" div.
 *
 * @package WordPress
 * @subpackage mii
 * @since mii 1.0
 */

// using
use \hpnWse\nWp\stBase as stWpBase;

?><!DOCTYPE html>
<html <?php language_attributes(); ?> class="cnWse_Spa">
<head>
	<meta charset="<?php bloginfo( 'charset' ); ?>">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">

	<title><?php wp_title(); ?></title>

	<link rel="shortcut icon" type="image/ico" href="images/favicon.ico">

	<?php wp_head(); ?>

	<!-- <script type="text/javascript" src="<?php echo includes_url() . 'js/jquery/jquery.js' ?>"></script> -->

	<script type="text/javascript">
		<?php
			// 导出一些站点信息给JS使用
			echo 
				'window.g_SiteInfo = {' . PHP_EOL .
					'c_RootUrl: "' . site_url() . '/",' . PHP_EOL .
					'c_ApiUrl: "' . \hpnApp\fGetApiUrl() . '",' . PHP_EOL .
					'c_ImgUrl: "' . site_url() . '/img/",' . PHP_EOL .
					'c_LoginUrl: "' . site_url() . '/login",' . PHP_EOL .
					'c_Usnm: ' . (\hpnApp\fIsMember() ? ('"' . $_SESSION['UserProfile']['Username'] . '"') : 'null,') . PHP_EOL .
				'};' . PHP_EOL
			;
		?>
	</script>

	<link rel="stylesheet" href="<?php echo site_url() ?>/Wse/cnWse/(0)Rset.css">
	<link rel="stylesheet" href="<?php echo site_url() ?>/Wse/cnWse/Font/font-awesome.css">
	<link rel="stylesheet" href="<?php echo site_url() ?>/Wse/cnWse/(10)cnWse.css">
	<link rel="stylesheet" href="<?php echo site_url() ?>/Wse/cnWse/(90)cnWp.css">
	<link rel="stylesheet" href="<?php echo site_url() ?>/css/(100)App.css">

	<script type="text/javascript" src="<?php echo site_url() ?>/Wse/nWse/(0)Seed.js"></script>
	<script type="text/javascript" src="<?php echo site_url() ?>/Wse/nWse/(10)nWse.js"></script>
	<script type="text/javascript" src="<?php echo site_url() ?>/Wse/nWse/(20)nWse.nMvc.js"></script>
	<script type="text/javascript" src="<?php echo site_url() ?>/Wse/nWse/(30)nWse.nGui.js"></script>
	<script type="text/javascript" src="<?php echo site_url() ?>/Wse/nWse/(31)nWse.nGui.nForm.js"></script>
	<script type="text/javascript" src="<?php echo site_url() ?>/Wse/nWse/(33)nWse.nGui.nImg.js"></script>

</head>

<body>